class_name ItemSlot extends TextureRect

@export var normal_texture : Texture2D
@export var toggle_texture : Texture2D
@export var choosed_texture : Texture2D
@export var background_text:String

@onready var item_sprite : Sprite2D = $ItemSprite
@onready var background_label : Label = $BackgroundLabel
@onready var num_label : Label = $NumLabel


func _ready() -> void:
	texture = normal_texture
	background_label.text = background_text
	mouse_entered.connect(_on_mouse_enter)
	mouse_exited.connect(_on_mouse_exit)
	
func _on_mouse_enter():
	texture = toggle_texture

func _on_mouse_exit():
	texture = normal_texture
